package com.learn.mapper;

import com.learn.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author suyafei
 */
public interface IRoleMapper {
    /**
     *查询Role通过userId
     */
    @Select("select * from sys_role r,sys_user_role ur where r.id = ur.roleid and ur.userid=#{uid}")
    public List<Role> findRoleByUId(Integer uid);
}
